package Operation;

import Book.BookList;
import Book.Book;

/**
 * Created with IntelliJ IDEA.
 * Description:查阅书籍
 * User: 86184
 * Date: 2023-02-18
 * Time: 15:22
 */
public class DisplayOperation implements IOperation{
    public void work(BookList bookList){
        System.out.println("显示书籍");
        int currentSize=bookList.getUseSize();
        for(int i=0;i<currentSize;i++){
            Book book=bookList.getPos(i);
            System.out.println(book);
        }
    }
}
